<!--pages/middleway/index.wxml-->
<template>
  <view>
    <view>path:{{path}}</view>
    <view>query:{{query}}</view>
    <view>场景值:{{scene}}</view>
    <view>页面参数:{{options1}}</view>
    <view>页面scene参数:{{codeScence}}</view>
  </view>
</template>
<script>
export default {
  data() {
    return {
      options1: "",
      optionsShow: null,
      path: "",
      query: "",
      scene: "",
      codeScence: ""
    };
  },
  onLoad: function(query) {
    console.log(query);
    this.path = Taro.getLaunchOptionsSync().path;
    this.query = JSON.stringify(Taro.getLaunchOptionsSync().query);
    this.scene = Taro.getLaunchOptionsSync().scene;
    this.options1 = JSON.stringify(query);
    this.codeScence = decodeURIComponent(query.scene);
  }
};
</script>

